<?php
class searchComponent extends Component{
    
    public function form($model, $values = array(), $ajax = true, $url = ""){
        $searchlink = $this->Html->getLink("ocorrencia/search");
        $q = isset($_GET['q'])?$_GET['q']:"";
$var = <<<TOOL
    <div id="searchbox" class="right">
        <form id="form-search" action="$searchlink" method="post">
                <input id="input-search" name="q" type="text" placeholder="Pesquisa Assuntos" value="$q"/>
        </form>
    </div>
TOOL;
        EventTube::addEvent('menu-superior', $var);
        
    }
    
}
?>